﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Study.aspx.cs" Inherits="Manage_Emp_Study" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>学习课程</title>
  <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
 
<style type="text/css">
    .cinputedit
    {
    	 border:solid 1px green;
    }
    .cinput
    {
    	border:none;
    }
</style>
</head>
<body leftmargin="8" topmargin="8" background='../skin/images/allbg.gif'>
    <form id="form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server"  EnableScriptGlobalization="True" EnableScriptLocalization="True">
        </asp:ScriptManager>
   <!--  快速转换位置按钮  -->
     <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
    <!--  内容列表   -->
     <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
    <tr>
     <td height="26" background="../skin/images/newlinebg3.gif">
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td align="center"><span style="font-size:14px; font-weight:bold">学习和测试</span></td>
       
     </tr>
    </table>
    </td>
    </tr>
    </table>
    <div id="form2">
  
    <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
   
    <tr bgcolor="#E7E7E7">
	    <td height="24" colspan="8" background="../skin/images/tbg.gif">&nbsp;课程列表
      </td>               
    </tr>
     
   <tr style="background-color:#ffffff">
    <td colspan="8">
          <asp:GridView ID="GridView1" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False"  
                            DataKeyNames="PlanFinishId"   SelectedIndex="0" 
              OnRowDataBound="GridView1_RowDataBound" GridLines="Both" 
              AllowPaging="False" PageIndex="1" AllowSorting="true" 
              onsorting="GridView1_Sorting" onrowcommand="GridView1_RowCommand" 
           
              >
                            <Columns>
                                 <asp:TemplateField HeaderText="课程类型" SortExpression="ClassTypeName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTypename" runat="server" Text='<%# Eval("ClassTypeName") %>'></asp:Label>
                                        <asp:HiddenField ID="hidTypeId" runat="server" Value='<%#Eval("ClassTypeId") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                 <asp:TemplateField HeaderText="课程编号" SortExpression="Code">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCode" runat="server" Text='<%# Eval("Code") %>'></asp:Label>
                                      <asp:HiddenField ID="hdfClassId" runat="server" Value='<%#Eval("ClassId") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="课程名称" SortExpression="Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblname" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="课程小时数" SortExpression="Time">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTime" runat="server" Text='<%# Eval("Time") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%-- <asp:TemplateField HeaderText="通过分数" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblPassScore" runat="server" Text='<%# Eval("PassScore") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>--%>
                                 <asp:TemplateField HeaderText="是否启用" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblIsValid" runat="server" Text='<%# Eval("IsValidDesc") %>'></asp:Label>
                                        <asp:HiddenField ID="hdfIsValid" runat="server" Value='<%# Eval("IsValid") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="计划安排时间" SortExpression="Period">
                                    <ItemTemplate>
                                        <asp:Label ID="lblPeriod" runat="server" Text='<%# Eval("Period") %>'></asp:Label>
                                       
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="学习日期" SortExpression="StudyDate">
                                    <ItemTemplate>
                                        <asp:Label ID="lblStudyDate" runat="server" Text='<%# Eval("StudyDate") %>'></asp:Label>
                                       
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="完成测试日期" SortExpression="FinishDate">
                                    <ItemTemplate>
                                        <asp:Label ID="lblFinishDate" runat="server" Text='<%# Eval("FinishDate") %>'></asp:Label>
                                       
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="测试分数" SortExpression="Score">
                                    <ItemTemplate>
                                        <asp:Label ID="lblScore" runat="server" Text='<%# Eval("Score") %>'></asp:Label>
                                       
                                    </ItemTemplate>
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="是否已完成" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblFinish" runat="server" Text='<%# Eval("Finish") %>'></asp:Label>
                                       <asp:HiddenField ID="hdfCanExam" runat="server"   Value='<%#Eval("CanExam") %>'/> 
                                       <asp:HiddenField ID="hdfCanStudy" runat="server"   Value='<%#Eval("CanStudy") %>'/> 
                                    </ItemTemplate>
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="按钮">
                                    <ItemTemplate>
                                       <asp:Button runat="server" ID="lbtlearn" CommandArgument='<%#Eval("PlanFinishId")%>'
                                    CommandName="learn" Text="学习" ></asp:Button>&nbsp;&nbsp;
                                  <%-- <asp:Button runat="server" ID="lbtExam" CommandArgument='<%#Eval("PlanFinishId")%>'
                                    CommandName="exam" Text="考试" ></asp:Button>--%>
                                    
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF"  ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                        </asp:GridView>
   </td>
   </tr>
   
     <%--<tr align="right" bgcolor="#EEF4EA">
                <td height="36" align="center" colspan="8">
                    <webdiyer:AspNetPager ID="pager1" runat="server" OnPageChanged="pager1_PageChanged"
                        PageSize="20">
                    </webdiyer:AspNetPager>
                </td>
            </tr>--%>
    </table>
     
  </div>
  </ContentTemplate>
    
    </asp:UpdatePanel>
    </form>
</body>
</html>
